# tox configuration - if you change anything here, run this to verify:
# tox --recreate

# run like this:
# tox
# tox -e py39
# tox -- -v -k test_wikiutil
# tox -- -v

[tox]
envlist = py{38,39,310},pypy3,flake8

[testenv]
deps = -rrequirements.d/development.txt
setenv =
    # some tests expect a specific order in dicts...
    PYTHONHASHSEED = 0
    # needed so that lxml can build from source (e.g. on pypy):
    CFLAGS = -I/usr/include/libxml2
commands = pytest -rs --pyargs {posargs:moin}

[testenv:flake8]
changedir =
deps = flake8
commands = flake8 src/moin scripts setup.py quickinstall.py
